﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    enum cookTyep { 
    中餐,
    西餐
    }
    class CookRobot : Robot
    {
        private cookTyep cookTyep;

        internal cookTyep CookTyep { get => cookTyep; set => cookTyep = value; }

        public static explicit operator CookRobot(string v)
        {
            throw new NotImplementedException();
        }

        public CookRobot(string name, cookTyep cookTyep) : base(name)
        {
            this.CookTyep = cookTyep;
        
        }
        public override void Working()
        {
            Console.WriteLine("你好，我是炒菜机器人！");
        }
    }
}
